import axios from '@/api/fetch';
import SERVER from '@/api/server';

//分页查询盘点单
export const findStockInventoryAudit = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/inventory`, { params });
//分页查询盘点单明细
export const findInventoryAuditDetail = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/inventory/findInventoryAuditDetail`, { params });
//审核盘点单
export const auditInventory = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/inventory/auditInventory`,  params );
//盘点审核明细导出
export const detailExport = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/inventory/detailExport`, {
    params,
    responseType: 'blob'
});
